Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the temperature parsing in virtium nvme disks #475

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

vivekrnv
Copy link
Contributor

@vivekrnv vivekrnv commented Jun 10, 2024

Description

Fix sonic-net/sonic-buildimage#19020

If the vendor utility couldn't infer the temperature, display the temperature inferred from smartctl utility

Motivation and Context

How Has This Been Tested?

Temperature can be read from smartctl utility

root@sonic:/home/admin# smartctl /dev/nvme0n1 -a 
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.0-11-2-amd64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Virtium VTPM24CEXI080-BM110006
SMART/Health Information (NVMe Log 0x02)
Temperature:                        39 Celsius
Before this change
root@sonic:/home/admin# show platform ssdhealth
Device Model : Virtium VTPM24CEXI080-BM110006
Health       : 100.0%
Temperature  : N/A

After this change
root@sonic:/home/admin# show platform ssdhealth
Device Model : Virtium VTPM24CEXI080-BM110006
Health       : 100.0%
Temperature  : 39.0C

Additional Information (Optional)

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@prgeor prgeor merged commit 51c6207 into sonic-net:master Jun 17, 2024
5 checks passed
@vivekrnv vivekrnv deleted the fix_ssdhealth_na branch June 17, 2024 18:30
@prgeor
Copy link
Collaborator

prgeor commented Jun 24, 2024

@bingwang-ms can you cherry pick to 202405

mssonicbld pushed a commit to mssonicbld/sonic-platform-common that referenced this pull request Sep 11, 2024
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #498

mssonicbld pushed a commit that referenced this pull request Sep 11, 2024
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ssdutil] [Vitrium] Can't read ssd temperature on Vitrium nvme disks
5 participants